﻿using Color = System.Drawing.Color;

namespace X.WPF.Controls.Models
{
    /// <summary>
    /// 标记信息表单元格
    /// </summary>
    public class Marker3DTableCell
    {
        #region # 构造器

        /// <summary>
        /// 创建标记信息表单元格构造器
        /// </summary>
        /// <param name="content">内容</param>
        /// <param name="color">颜色</param>
        /// <param name="backgroundColor">背景颜色</param>
        public Marker3DTableCell(string content, Color? color = null, Color? backgroundColor = null)
        {
            this.Content = content;
            this.Color = color ?? Color.Black;
            this.BackgroundColor = backgroundColor ?? Color.White;
        }

        /// <summary>
        /// 创建标记信息表单元格构造器
        /// </summary>
        /// <param name="content">内容</param>
        /// <param name="width">宽</param>
        /// <param name="color">颜色</param>
        /// <param name="backgroundColor">背景颜色</param>
        public Marker3DTableCell(string content, int width, Color? color = null, Color? backgroundColor = null)
        : this(content, color, backgroundColor)
        {
            this.Width = width;
        }
        #endregion

        #region # 属性

        #region 宽 —— int Width
        /// <summary>
        /// 宽
        /// </summary>
        public int Width { get; set; }
        #endregion

        #region 高 —— int Height
        /// <summary>
        /// 高
        /// </summary>
        public int Height { get; set; }
        #endregion

        #region X —— float X
        /// <summary>
        /// X
        /// </summary>
        public float X { get; set; }
        #endregion

        #region Y —— float Y
        /// <summary>
        /// Y
        /// </summary>
        public float Y { get; set; }
        #endregion

        #region 内容 —— string Content
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        #endregion

        #region 内容X —— float ContentX
        /// <summary>
        /// 内容X
        /// </summary>
        public float ContentX { get; set; }
        #endregion

        #region 内容Y —— float ContentY
        /// <summary>
        /// 内容Y
        /// </summary>
        public float ContentY { get; set; }
        #endregion

        #region 颜色 —— Color Color
        /// <summary>
        /// 颜色
        /// </summary>
        public Color Color { get; set; }
        #endregion

        #region 背景颜色 —— Color BackgroundColor
        /// <summary>
        /// 背景颜色
        /// </summary>
        public Color BackgroundColor { get; set; }
        #endregion

        #endregion

    }
}